package cn.didi.feidi.javabackend.server.waterdeliver.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/7/12.
 */
@Component
public final class MysqlJpaHttpAddress {

    public static String mysqlJpaHost;

    @Value("${javabackend.defaultHost}")
    public void setMysqlJpaHost(String mysqlJpaHost){
        this.mysqlJpaHost = mysqlJpaHost;
    }

    public static String mysqlJpaPort;

    @Value("${javabackend.port.mysql-jpa}")
    public void setMysqlJpaPort(String mysqlJpaPort){
        this.mysqlJpaPort = mysqlJpaPort;
    }

    public static String requestPath = "http://"+mysqlJpaHost+":"+mysqlJpaPort;

    public static String getUserxxById = requestPath+"/userxx";

}
